package cn.jia.spring3;

import cn.jia.spring2.config.CDConfig;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * Created by jia on 2018/3/27.
 */
@RunWith(SpringJUnit4ClassRunner.class)
/*  @ContextConfiguration会告诉它需要
    在CDPlayerConfig中加载配置。因为CDPlayerConfig类中包含了
    @ComponentScan，因此最终的应用上下文中应该包含CompactDiscbean*/
//@ContextConfiguration(classes = CDConfig.class)
@ContextConfiguration({"classpath*:/spring-context2.xml"})
public class Test1 {
}
